<template>
  <div class="">
    <h1>这是组件b</h1>
    <h1>{{ fromb }}</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      fromb: "",
    };
  },
  mounted() {
    this.$bus.$on("aa", (val) => {
      this.fromb = val;
    });
  },
  methods: {},
  components: {},
};
</script>

<style lang="scss"></style>
